/**
* Copyright (C) 2012-2017 ZEEI Inc.All Rights Reserved.
* 项目名称：common
* 文件名称：GlobalConstant.java
* 包  名 称：com.zeei.common.constant
* 文件描述：全局常量类
* 创建日期：2017年4月17日下午4:36:24
* 
* 修改历史
* 1.0 luoxianglin 2017年4月17日下午4:36:24 创建文件
*
*/
package com.zeei.ems.base.constant;

/**
 * @类型名称：GlobalConstant 
 * @类型描述：全局常量类
 * @功能描述：提供系统级常量
 * @创建作者：luoxianglin
 */
public class GlobalConstant {

	/******* 系统公共常量信息 ************/
	// 默认页码
	public static final int DEFAULT_PAGENUM = 1;
	// 默认每页行记录数
	public static final int DEFAULT_PAGESIZE = 10;
	public static final boolean SUCCEED = true;
	public static final boolean FAILED = false;
	// 数据库更新操作失败消息
	public static final String FAILED_SAVE = "保存失败";
	// 数据库更新操作成功消息
	public static final String SUCCESS_SAVE = "保存成功";
	// 数据库更新操作失败消息
	public static final String FAILED_DELETE = "删除失败";
	// 数据库更新操作成功消息
	public static final String SUCCESS_DELETE = "删除成功";
	// 下载文件操作失败消息
	public static final String FAILED_DOWN = "下载失败";
	// 导入文件操作失败消息
	public static final String FAILED_IMPORT = "导入失败";
	// 导入文件操作失败消息
	public static final String SUCCESS_IMPORT = "导入成功";

	/**** 用户常量信息定义 ***/
	// 存放在session 用户信息
	public static final String SESSION_USER = "USER_INFO";
	// 用户登录失败
	public static final String USER_LOGIN_FAILED = "用户名或者密码有误";
	// 修改密码
	public static final String RET_PSW_FAILED = "输入的密码不正确!"; 
	// 修改密码
	public static final String RET_OLDPSW_FAILED = "输入的旧密码不正确!";
	// 存放的bfs的路径
	public static final String BFS_URL = "BFS_URL";
	// 存放的产品项目的路径
	public static final String REQUEST_URL = "REQUEST_URL";
	// 过期时间
	public static final String EXPIRINGDATE = "ExpiringDate";
	// 存放的sessionId
	public static final String SESSION_ID = "SESSION_ID";
	// 统一异常返回消息
	public static final String REQUEST_FAILED = "当前操作失败！";
	// 超级管理员固定账号
	public static final String ADMIN_NAME = "System";
	// 初始密码
	public static final String DEFAULT_PWD = "Adminuser123";
	// 超级管理员固定密码
	public static final String ADMIN_SECURITY = "1";
	/** 用户启用的状态 */
	public static final Integer USER_ABLED_STATU = 1;
	/** 定义一个查询结果失败记录数常量-1 */
	public static final Integer INITIAL_NUM = -1;
	/****** 默认批量操作的大小 ********/
	public static final int DEFAULT_BATCH_SIZE = 200;

	/****** 默认的文件上传目录 *******/
	public static final String UPLOAD_FOLDER = "uploads";
	public static final String FILE_NOT_FOUND = "要下载的文件不存在！";
	public static final String ILLEGAL_ARGS = "上传文件带有无效的参数！";

	/****** web操作日志 *******/
	// web端发送消息队列
	public static final String WEB_QUEUE = "Control";
	// web端发送消息队列(数据审核队列)
	public static final String DATA_REVIEW = "T212Cycle";
	// web端发送消息队列(质控数据审核队列)
	public static final String DATA_AUDIT = "QcAudit";
	// web端发送消息Notice队列
	public static final String WEB_NOTICE = "Notice";
	// 告警
	public static final String MQ_QUEUE_ALARM = "Alarm";
	// 服务运行日志
	public static final String LOG_TYPE_WEB = "8";
	// WEB操作日志
	public static final String LOG_TYPE_WEB_OPERATE = "9";
	// 日志报告队列
	public static final String LTS_QUEUE = "Logs";

	/**** 返回结果常量信息定义 ***/
	// 返回正确
	public static final String OK = "OK";
	// 返回错误
	public static final String ERROR = "ERROR";
	// 请求数据为空
	public static final String DATANULL = "数据为空";
	// 请求操作失败
	public static final String ERRMSG = "操作失败";
	// 请求失败
	public static final String ERRGETMSG = "请求失败";

	/*** 导入导出常量信息定义 ***/
	public static final String DELETE_FLAG = "DELETE_FLAG";
	public static final String CREATE_TIME = "CREATE_TIME";
	public static final String CREATE_USER = "CREATE_USER";
	public static final String LAST_MODIFY_USER = "LAST_MODIFY_USER";
	public static final String LAST_MODIFY_TIME = "LAST_MODIFY_TIME";
	public static final String ID = "ID";
	
	//UTF-8编码
	public static final String UTF8 = "UTF-8";
	
	//UTF-16BE编码
	public static final String UTF16 ="UTF-16BE";
	
	//ANSI编码
	public static final String ANSI ="ANSI";
	
	//UTF-8编码
	public static final String GBK = "GBK";
	
	//Unicode编码
	public static final String UNICODE = "Unicode";
	
	private GlobalConstant(){
		
	}

	/**
	 * 控制队列名称
	 */
	public static final String CMD_QUEUE = "Control";
}
